import json

stream = [
    {"type": "rtmp", "url": "rtmp://192.168.31.96/live/livestream/sim/123456"},
    {"type": "rtsp", "url": "rtsp://192.168.31.96:8554/stream/sim/123456"},
]

json_string = json.dumps(stream)
print(json_string)
